const msgSceneColumn = [
  {
    title: "消息源编码",
    dataIndex: "sourceCode"
  },
  {
    title: "消息源名称",
    dataIndex: "sourceName"
  },
  {
    title: "场景编码",
    dataIndex: "sceneCode"
  },
  {
    title: "场景名称",
    dataIndex: "sceneName"
  }
];
const msgTmpColumn = [
  {
    title: "消息模板编码",
    dataIndex: "templateCode"
  },
  {
    title: "消息模板名称",
    dataIndex: "templateName"
  },
  {
    title: "消息业务类型",
    dataIndex: ""
  },
  {
    title: "消息模板标题",
    dataIndex: "templateTitle"
  }
];
const msgReceiveColumn = [
  {
    title: "接收组编码",
    dataIndex: "receiveGroupCode"
  },
  {
    title: "接收组名称",
    dataIndex: "receiveGroupName"
  }
  // {
  //   title: "接收组范围",
  //   dataIndex: "baseReceiveGroupRangeDTOList",
  //   ellipsis: true,
  //   render: ranges => {
  //     try {
  //       const arr = ranges || [];
  //       return arr
  //         .map(r =>
  //           JSON.parse(r.rangeEntityId)
  //             .map(obj => Object.values(obj)[0])
  //             .join(",")
  //         )
  //         .join(",");
  //     } catch (e) {
  //       const arr = ranges || [];
  //       return arr.map(r => r.rangeEntityId).join(",");
  //     }
  //   }
  // }
];
const msgChannelColumn = [
  {
    title: "渠道编码",
    dataIndex: "channelCode"
  },
  {
    title: "渠道名称",
    dataIndex: "description"
  }
];

export { msgSceneColumn, msgTmpColumn, msgReceiveColumn, msgChannelColumn };
